//
//  Scrollerview.h
//  StackCardViewRecycleLayout
//
//  Created by fen on 2018/3/27.
//  Copyright © 2018年 testDefaultImage. All rights reserved.
//

#import <UIKit/UIKit.h>

#define  CardW 136
#define  CardH 182
#define  PAGEWIDTH 100
#define  MAXOFFSET 50000
#define  MAXCOUNT 7

@protocol scrollCycleDelegate <NSObject>

- (UIView *)imageViewAtIndex:(NSInteger)index currentIndex:(NSInteger)currentIndex;
- (UIButton *)buttonAtIndex:(NSInteger)index currentIndex:(NSInteger)currentIndex;
- (void)viewDidSelectRowAtIndexPath:(NSInteger)index;

@end

@interface Scrollerview : UIView<UIScrollViewDelegate>

@property (nonatomic, weak) id<scrollCycleDelegate> dataSourceDelegate;

- (void)setCount:(NSInteger)count withCurrentIndex:(NSInteger)index dataCount:(NSInteger)dataCount;



@end
